package com.schoolhostptail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolhostptail.entity.Doctor;
import com.schoolhostptail.entity.Student;
import com.schoolhostptail.entity.view.DoctorModel;
import com.schoolhostptail.qpage.QPage;
import com.schoolhostptail.util.Result;

import java.util.List;

/**
 * 医生接口层
 */
public interface IDoctorService extends IService<Doctor> {

    /**
     * 列表分页
     * @param qPage
     * @param obj
     * @return
     */
    IPage getList(QPage qPage, Doctor obj);

    /**
     * 新增
     * @param obj
     * @return
     */
    Result insert(Doctor obj);

    /**
     * 修改
     * @param obj
     * @return
     */
    Result updates(Doctor obj);

    /**
     * 删除
     * @param id
     * @return
     */
    Result deleteId(Integer id);


    /**
     * 医生登录
     * @param account
     * @param pwd
     * @return
     */
    Doctor login(String account, String pwd);

    /**
     * 导入医生
     * @param ulist
     * @return
     */
    Result importExcel(List<DoctorModel> ulist);


}

